package com.guigu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.Merchant;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 商户表 服务类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
public interface MerchantService extends IService<Merchant> {
    IPage<Merchant> getMerchantPage(Page<Merchant> page, String shopName, String shopType, String startDate, String endDate);

    boolean updateMerchant(Merchant merchant);

    boolean deleteMerchant(Integer merchantId);

    IPage<Merchant> getMerchantPage2(Page<Merchant> page, String shopName, String shopType, String startDate, String endDate, String checkTag);

    boolean review(Merchant merchant);

    List<Merchant> getMerchantWithNickname(String shopName, String shopType, String startDate, String endDate);

    Merchant selectMerchantWithNicknameById(Integer merchantId);
}
